from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import Select
import re, time
import smtplib
from email.mime.text import MIMEText
from email.header import Header

class QrCode(object):
    def __init__(self, driver):
        self.driver = driver
    def getCode(self):
        # 找二维码
        
        qrCodeElement = self.driver.find_element(By.XPATH, '//*[@id="J-qrImg"]')
        qrCodeUrl = qrCodeElement.get_attribute('src')
        print(qrCodeUrl)
        return False
   